/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.material.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 证书表 实体类
 *
 * @author junxin
 * @since 2023-05-31
 */
@Data
@TableName("ts_certificate")
@ApiModel(value = "Certificate对象", description = "证书表")
@EqualsAndHashCode(callSuper = true)
public class CertificateEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
	private String userName;
	/**
	 * 证书类型
	 */
	@ApiModelProperty(value = "证书类型")
	private Integer certificateType;
	/**
	 * 证书编码
	 */
	@ApiModelProperty(value = "证书编码")
	private String certificateNo;
	/**
	 * 证件号码
	 */
	@ApiModelProperty(value = "证件号码")
	private String idCard;
	/**
	 * 证件类型
	 */
	@ApiModelProperty(value = "证件类型")
	private String cardType;
	/**
	 * 职业名称
	 */
	@ApiModelProperty(value = "职业名称")
	private String occupation;
	/**
	 * 工种/职业方向
	 */
	@ApiModelProperty(value = "工种/职业方向")
	private String job;
	/**
	 * 职业技能等级
	 */
	@ApiModelProperty(value = "职业技能等级")
	private String skillLevel;
	/**
	 * 发证日期
	 */
	@ApiModelProperty(value = "发证日期")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date issueDate;
	/**
	 * 学时
	 */
	@ApiModelProperty(value = "学时")
	private Integer period;
	/**
	 * 培训开始时间
	 */
	@ApiModelProperty(value = "培训开始时间")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startTime;
	/**
	 * 培训结束时间
	 */
	@ApiModelProperty(value = "培训结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endTime;
	/**
	 * 培训名称
	 */
	@ApiModelProperty(value = "培训名称")
	private String trainingName;

	/**
	 * 用户编码
	 */
	@ApiModelProperty(value = "用户编码")
	private String userNumber;

}
